home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / x / volume5 / xview.demos / part06 < prev    next >
Encoding:
Internet Message Format  |  1989-12-07  |  19.5 KB

  1. Path: uunet!island!sun.com
  2. From: argv@sun.com (Dan Heller)
  3. Newsgroups: comp.sources.x
  4. Subject: v05i044: XView example programs, Part06/06
  5. Message-ID: <1244@island.uu.net>
  6. Date: 8 Dec 89 07:39:06 GMT
  7. Sender: argv@island.uu.net
  8. Lines: 610
  9. Approved: island!argv@sun.com
  10.  
  11. Submitted-by: Dan Heller <argv@sun.com>
  12. Posting-number: Volume 5, Issue 44
  13. Archive-name: xview.demos/part06
  14.  
  15.  
  16.  
  17. #! /bin/sh
  18. # This is a shell archive.  Remove anything before this line, then feed it
  19. # into a shell via "sh file" or similar.  To overwrite existing files,
  20. # type "sh file -c".
  21. # The tool that generated this appeared in the comp.sources.unix newsgroup;
  22. # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
  23. # If this archive is complete, you will see the following message at the end:
  24. #        "End of archive 6 (of 6)."
  25. # Contents:  xview.demos/color/Makefile xview.demos/cursor/Makefile
  26. #   xview.demos/defaults/Makefile xview.demos/fonts/Makefile
  27. #   xview.demos/frames/Makefile xview.demos/frames/frame_color.c
  28. #   xview.demos/frames/simple_frame.c xview.demos/frames/subframe.c
  29. #   xview.demos/icons/Imakefile xview.demos/icons/Makefile
  30. #   xview.demos/menus/Makefile xview.demos/misc/Makefile
  31. #   xview.demos/notice/Makefile xview.demos/notifier/Makefile
  32. #   xview.demos/panels/Makefile xview.demos/scrollbar/Makefile
  33. #   xview.demos/seln_svc/Makefile xview.demos/sv_compat/Makefile
  34. #   xview.demos/textsw/Imakefile xview.demos/textsw/Makefile
  35. #   xview.demos/textsw/textsw.c xview.demos/ttysw/Makefile
  36. #   xview.demos/ttysw/sample_tty.c
  37. # Wrapped by argv@island on Thu Dec  7 23:18:33 1989
  38. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  39. if test -f 'xview.demos/color/Makefile' -a "${1}" != "-c" ; then 
  40.   echo shar: Will not clobber existing file \"'xview.demos/color/Makefile'\"
  41. else
  42. echo shar: Extracting \"'xview.demos/color/Makefile'\" \(191 characters\)
  43. sed "s/^X//" >'xview.demos/color/Makefile' <<'END_OF_FILE'
  44. XLDFLAGS= -lxview -lX11
  45. X
  46. XTARGETS=color color_animate color_logo color_objs x_draw
  47. XICON= cardback.icon
  48. X
  49. Xall: $(ICON) $(TARGETS)
  50. X
  51. X${TARGETS}: $$@.c $$@.o 
  52. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
  53. END_OF_FILE
  54. if test 191 -ne `wc -c <'xview.demos/color/Makefile'`; then
  55.     echo shar: \"'xview.demos/color/Makefile'\" unpacked with wrong size!
  56. fi
  57. # end of 'xview.demos/color/Makefile'
  58. fi
  59. if test -f 'xview.demos/cursor/Makefile' -a "${1}" != "-c" ; then 
  60.   echo shar: Will not clobber existing file \"'xview.demos/cursor/Makefile'\"
  61. else
  62. echo shar: Extracting \"'xview.demos/cursor/Makefile'\" \(149 characters\)
  63. sed "s/^X//" >'xview.demos/cursor/Makefile' <<'END_OF_FILE'
  64. XLDFLAGS= -lxview -lX11
  65. X
  66. XTARGETS=hot_spot simple_cursor stop_cursor
  67. X
  68. Xall: $(TARGETS)
  69. X
  70. X${TARGETS}: $$@.c $$@.o 
  71. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
  72. END_OF_FILE
  73. if test 149 -ne `wc -c <'xview.demos/cursor/Makefile'`; then
  74.     echo shar: \"'xview.demos/cursor/Makefile'\" unpacked with wrong size!
  75. fi
  76. # end of 'xview.demos/cursor/Makefile'
  77. fi
  78. if test -f 'xview.demos/defaults/Makefile' -a "${1}" != "-c" ; then 
  79.   echo shar: Will not clobber existing file \"'xview.demos/defaults/Makefile'\"
  80. else
  81. echo shar: Extracting \"'xview.demos/defaults/Makefile'\" \(141 characters\)
  82. sed "s/^X//" >'xview.demos/defaults/Makefile' <<'END_OF_FILE'
  83. XLDFLAGS= -lxview -lX11
  84. X
  85. XTARGETS=default_size default_text
  86. X
  87. Xall: $(TARGETS)
  88. X
  89. X${TARGETS}: $$@.c $$@.o 
  90. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o 
  91. END_OF_FILE
  92. if test 141 -ne `wc -c <'xview.demos/defaults/Makefile'`; then
  93.     echo shar: \"'xview.demos/defaults/Makefile'\" unpacked with wrong size!
  94. fi
  95. # end of 'xview.demos/defaults/Makefile'
  96. fi
  97. if test -f 'xview.demos/fonts/Makefile' -a "${1}" != "-c" ; then 
  98.   echo shar: Will not clobber existing file \"'xview.demos/fonts/Makefile'\"
  99. else
  100. echo shar: Extracting \"'xview.demos/fonts/Makefile'\" \(142 characters\)
  101. sed "s/^X//" >'xview.demos/fonts/Makefile' <<'END_OF_FILE'
  102. XLDFLAGS= -lxview -lX11
  103. X
  104. XTARGETS=fonts simple_font type_font
  105. X
  106. Xall: $(TARGETS)
  107. X
  108. X${TARGETS}: $$@.c $$@.o 
  109. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
  110. END_OF_FILE
  111. if test 142 -ne `wc -c <'xview.demos/fonts/Makefile'`; then
  112.     echo shar: \"'xview.demos/fonts/Makefile'\" unpacked with wrong size!
  113. fi
  114. # end of 'xview.demos/fonts/Makefile'
  115. fi
  116. if test -f 'xview.demos/frames/Makefile' -a "${1}" != "-c" ; then 
  117.   echo shar: Will not clobber existing file \"'xview.demos/frames/Makefile'\"
  118. else
  119. echo shar: Extracting \"'xview.demos/frames/Makefile'\" \(149 characters\)
  120. sed "s/^X//" >'xview.demos/frames/Makefile' <<'END_OF_FILE'
  121. XLDFLAGS= -lxview -lX11
  122. X
  123. XTARGETS=frame_color simple_frame subframe
  124. X
  125. Xall: $(TARGETS)
  126. X
  127. X${TARGETS}: $$@.c $$@.o 
  128. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o 
  129. END_OF_FILE
  130. if test 149 -ne `wc -c <'xview.demos/frames/Makefile'`; then
  131.     echo shar: \"'xview.demos/frames/Makefile'\" unpacked with wrong size!
  132. fi
  133. # end of 'xview.demos/frames/Makefile'
  134. fi
  135. if test -f 'xview.demos/frames/frame_color.c' -a "${1}" != "-c" ; then 
  136.   echo shar: Will not clobber existing file \"'xview.demos/frames/frame_color.c'\"
  137. else
  138. echo shar: Extracting \"'xview.demos/frames/frame_color.c'\" \(622 characters\)
  139. sed "s/^X//" >'xview.demos/frames/frame_color.c' <<'END_OF_FILE'
  140. X#include <xview/xview.h>
  141. X#include <xview/panel.h>
  142. X#include <xview/cms.h>
  143. X
  144. Xmain()
  145. X{
  146. X    Frame               frame;
  147. X    Panel               panel;
  148. X    Xv_singlecolor      fg, bg;
  149. X
  150. X    fg.red = 250, fg.green = 230, fg.blue = 20;
  151. X    bg.red = 180, bg.green = 100, bg.blue = 20;
  152. X
  153. X    frame = (Frame)xv_create(NULL, FRAME,
  154. X        FRAME_BACKGROUND_COLOR, &bg,
  155. X        FRAME_FOREGROUND_COLOR, &fg,
  156. X        FRAME_INHERIT_COLORS,   TRUE,
  157. X        NULL);
  158. X
  159. X    panel = (Panel)xv_create(frame, PANEL, NULL);
  160. X    (void) xv_create(panel, PANEL_BUTTON,
  161. X        PANEL_LABEL_STRING,    "Push Me",
  162. X        NULL);
  163. X
  164. X    xv_main_loop(frame);
  165. X}
  166. END_OF_FILE
  167. if test 622 -ne `wc -c <'xview.demos/frames/frame_color.c'`; then
  168.     echo shar: \"'xview.demos/frames/frame_color.c'\" unpacked with wrong size!
  169. fi
  170. # end of 'xview.demos/frames/frame_color.c'
  171. fi
  172. if test -f 'xview.demos/frames/simple_frame.c' -a "${1}" != "-c" ; then 
  173.   echo shar: Will not clobber existing file \"'xview.demos/frames/simple_frame.c'\"
  174. else
  175. echo shar: Extracting \"'xview.demos/frames/simple_frame.c'\" \(128 characters\)
  176. sed "s/^X//" >'xview.demos/frames/simple_frame.c' <<'END_OF_FILE'
  177. X#include <xview/xview.h>
  178. X
  179. Xmain()
  180. X{
  181. X    Frame frame;
  182. X    frame = (Frame)xv_create(NULL, FRAME, NULL);
  183. X    xv_main_loop(frame);
  184. X}
  185. END_OF_FILE
  186. if test 128 -ne `wc -c <'xview.demos/frames/simple_frame.c'`; then
  187.     echo shar: \"'xview.demos/frames/simple_frame.c'\" unpacked with wrong size!
  188. fi
  189. # end of 'xview.demos/frames/simple_frame.c'
  190. fi
  191. if test -f 'xview.demos/frames/subframe.c' -a "${1}" != "-c" ; then 
  192.   echo shar: Will not clobber existing file \"'xview.demos/frames/subframe.c'\"
  193. else
  194. echo shar: Extracting \"'xview.demos/frames/subframe.c'\" \(597 characters\)
  195. sed "s/^X//" >'xview.demos/frames/subframe.c' <<'END_OF_FILE'
  196. X/*
  197. X * subframe.c -- display a subframe from a base frame.
  198. X */
  199. X#include <xview/xview.h>
  200. X
  201. Xmain(argc, argv)
  202. Xint argc;
  203. Xchar *argv[];
  204. X{
  205. X    Frame frame, subframe;
  206. X
  207. X    xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, NULL);
  208. X
  209. X    frame = (Frame)xv_create(NULL, FRAME,
  210. X        XV_WIDTH,       100,
  211. X        XV_HEIGHT,      100,
  212. X        FRAME_LABEL,    "Base Frame",
  213. X        NULL);
  214. X
  215. X    subframe = (Frame)xv_create(frame, FRAME_CMD,
  216. X        XV_WIDTH,       100,
  217. X        XV_HEIGHT,      100,
  218. X        FRAME_LABEL,    "Popup",
  219. X        NULL);
  220. X
  221. X    xv_set(subframe, XV_SHOW, TRUE, NULL);
  222. X
  223. X    xv_main_loop(frame);
  224. X}
  225. END_OF_FILE
  226. if test 597 -ne `wc -c <'xview.demos/frames/subframe.c'`; then
  227.     echo shar: \"'xview.demos/frames/subframe.c'\" unpacked with wrong size!
  228. fi
  229. # end of 'xview.demos/frames/subframe.c'
  230. fi
  231. if test -f 'xview.demos/icons/Imakefile' -a "${1}" != "-c" ; then 
  232.   echo shar: Will not clobber existing file \"'xview.demos/icons/Imakefile'\"
  233. else
  234. echo shar: Extracting \"'xview.demos/icons/Imakefile'\" \(662 characters\)
  235. sed "s/^X//" >'xview.demos/icons/Imakefile' <<'END_OF_FILE'
  236. X#
  237. X# @(#)Imakefile 1.3 89/12/06 SMI
  238. X#
  239. X# Imakefile for icons
  240. X#
  241. X# LIBRARY_DEST is the location of the XView libraries
  242. X# HEADER_DEST is the location of the XView header files
  243. X# LIBDIR is the directory containing the X11 library (libX11.a)
  244. X#
  245. X
  246. XLIBRARY_DEST=/home/xview/usr/lib
  247. XHEADER_DEST=/home/xview/usr/include
  248. X
  249. XLIBDIR=/home/X11/lib
  250. XLDFLAGS=-L$(LIBRARY_DEST) -L$(LIBDIR) -lxview -lX11
  251. XINCLUDES= -I.. -I$(HEADER_DEST) -I$(TOP) -DSTANDALONE
  252. X
  253. X# Uncomment the following line to use libxvol.a and libxvin.a
  254. X#
  255. X#LDFLAGS=-L$(LIBRARY_DEST) -L$(LIBDIR) -lxvol -lxvin -lX11
  256. X
  257. XTARGETS=icon_demo 
  258. X
  259. Xall: $(TARGETS)
  260. X
  261. X${TARGETS}: $$@.c $$@.o 
  262. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o 
  263. END_OF_FILE
  264. if test 662 -ne `wc -c <'xview.demos/icons/Imakefile'`; then
  265.     echo shar: \"'xview.demos/icons/Imakefile'\" unpacked with wrong size!
  266. fi
  267. # end of 'xview.demos/icons/Imakefile'
  268. fi
  269. if test -f 'xview.demos/icons/Makefile' -a "${1}" != "-c" ; then 
  270.   echo shar: Will not clobber existing file \"'xview.demos/icons/Makefile'\"
  271. else
  272. echo shar: Extracting \"'xview.demos/icons/Makefile'\" \(126 characters\)
  273. sed "s/^X//" >'xview.demos/icons/Makefile' <<'END_OF_FILE'
  274. XLDFLAGS= -lxview -lX11
  275. X
  276. XTARGETS=icon_demo 
  277. X
  278. Xall: $(TARGETS)
  279. X
  280. X${TARGETS}: $$@.c $$@.o 
  281. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o 
  282. END_OF_FILE
  283. if test 126 -ne `wc -c <'xview.demos/icons/Makefile'`; then
  284.     echo shar: \"'xview.demos/icons/Makefile'\" unpacked with wrong size!
  285. fi
  286. # end of 'xview.demos/icons/Makefile'
  287. fi
  288. if test -f 'xview.demos/menus/Makefile' -a "${1}" != "-c" ; then 
  289.   echo shar: Will not clobber existing file \"'xview.demos/menus/Makefile'\"
  290. else
  291. echo shar: Extracting \"'xview.demos/menus/Makefile'\" \(168 characters\)
  292. sed "s/^X//" >'xview.demos/menus/Makefile' <<'END_OF_FILE'
  293. XLDFLAGS= -lxview -lX11
  294. X
  295. XTARGETS=menu menu_dir menu_dir2 pin_menu simple_menu xv_menu
  296. X
  297. Xall: $(TARGETS)
  298. X
  299. X${TARGETS}: $$@.c $$@.o 
  300. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
  301. X
  302. END_OF_FILE
  303. if test 168 -ne `wc -c <'xview.demos/menus/Makefile'`; then
  304.     echo shar: \"'xview.demos/menus/Makefile'\" unpacked with wrong size!
  305. fi
  306. # end of 'xview.demos/menus/Makefile'
  307. fi
  308. if test -f 'xview.demos/misc/Makefile' -a "${1}" != "-c" ; then 
  309.   echo shar: Will not clobber existing file \"'xview.demos/misc/Makefile'\"
  310. else
  311. echo shar: Extracting \"'xview.demos/misc/Makefile'\" \(154 characters\)
  312. sed "s/^X//" >'xview.demos/misc/Makefile' <<'END_OF_FILE'
  313. XLDFLAGS= -lxview -lX11
  314. X
  315. XTARGETS=drag_n_drop fullscreen screen svrimage
  316. X
  317. Xall: $(TARGETS)
  318. X
  319. X${TARGETS}: $$@.c $$@.o 
  320. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o 
  321. END_OF_FILE
  322. if test 154 -ne `wc -c <'xview.demos/misc/Makefile'`; then
  323.     echo shar: \"'xview.demos/misc/Makefile'\" unpacked with wrong size!
  324. fi
  325. # end of 'xview.demos/misc/Makefile'
  326. fi
  327. if test -f 'xview.demos/notice/Makefile' -a "${1}" != "-c" ; then 
  328.   echo shar: Will not clobber existing file \"'xview.demos/notice/Makefile'\"
  329. else
  330. echo shar: Extracting \"'xview.demos/notice/Makefile'\" \(151 characters\)
  331. sed "s/^X//" >'xview.demos/notice/Makefile' <<'END_OF_FILE'
  332. XLDFLAGS= -lxview -lX11
  333. X
  334. XTARGETS=notice simple_notice trigger_notice
  335. X
  336. Xall: $(TARGETS)
  337. X
  338. X${TARGETS}: $$@.c $$@.o 
  339. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o 
  340. END_OF_FILE
  341. if test 151 -ne `wc -c <'xview.demos/notice/Makefile'`; then
  342.     echo shar: \"'xview.demos/notice/Makefile'\" unpacked with wrong size!
  343. fi
  344. # end of 'xview.demos/notice/Makefile'
  345. fi
  346. if test -f 'xview.demos/notifier/Makefile' -a "${1}" != "-c" ; then 
  347.   echo shar: Will not clobber existing file \"'xview.demos/notifier/Makefile'\"
  348. else
  349. echo shar: Extracting \"'xview.demos/notifier/Makefile'\" \(177 characters\)
  350. sed "s/^X//" >'xview.demos/notifier/Makefile' <<'END_OF_FILE'
  351. XLDFLAGS= -lxview -lX11
  352. X
  353. XTARGETS=animate interpose notify_input ntfy_do_dis ntfy_pipe ntfy_sig
  354. X
  355. Xall: $(TARGETS)
  356. X
  357. X${TARGETS}: $$@.c $$@.o 
  358. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o 
  359. END_OF_FILE
  360. if test 177 -ne `wc -c <'xview.demos/notifier/Makefile'`; then
  361.     echo shar: \"'xview.demos/notifier/Makefile'\" unpacked with wrong size!
  362. fi
  363. # end of 'xview.demos/notifier/Makefile'
  364. fi
  365. if test -f 'xview.demos/panels/Makefile' -a "${1}" != "-c" ; then 
  366.   echo shar: Will not clobber existing file \"'xview.demos/panels/Makefile'\"
  367. else
  368. echo shar: Extracting \"'xview.demos/panels/Makefile'\" \(216 characters\)
  369. sed "s/^X//" >'xview.demos/panels/Makefile' <<'END_OF_FILE'
  370. XLDFLAGS= -lxview -lX11
  371. X
  372. XTARGETS=btn_menu choices client_data item_move list_glyphs \
  373. X        panel_repaint repaint simple_panel stop_frame
  374. X
  375. Xall: $(TARGETS)
  376. X
  377. X${TARGETS}: $$@.c $$@.o 
  378. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o 
  379. END_OF_FILE
  380. if test 216 -ne `wc -c <'xview.demos/panels/Makefile'`; then
  381.     echo shar: \"'xview.demos/panels/Makefile'\" unpacked with wrong size!
  382. fi
  383. # end of 'xview.demos/panels/Makefile'
  384. fi
  385. if test -f 'xview.demos/scrollbar/Makefile' -a "${1}" != "-c" ; then 
  386.   echo shar: Will not clobber existing file \"'xview.demos/scrollbar/Makefile'\"
  387. else
  388. echo shar: Extracting \"'xview.demos/scrollbar/Makefile'\" \(142 characters\)
  389. sed "s/^X//" >'xview.demos/scrollbar/Makefile' <<'END_OF_FILE'
  390. XLDFLAGS= -lxview -lX11
  391. X
  392. XTARGETS=scroll_cells scroll_cells2
  393. X
  394. Xall: $(TARGETS)
  395. X
  396. X${TARGETS}: $$@.c $$@.o 
  397. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o 
  398. END_OF_FILE
  399. if test 142 -ne `wc -c <'xview.demos/scrollbar/Makefile'`; then
  400.     echo shar: \"'xview.demos/scrollbar/Makefile'\" unpacked with wrong size!
  401. fi
  402. # end of 'xview.demos/scrollbar/Makefile'
  403. fi
  404. if test -f 'xview.demos/seln_svc/Makefile' -a "${1}" != "-c" ; then 
  405.   echo shar: Will not clobber existing file \"'xview.demos/seln_svc/Makefile'\"
  406. else
  407. echo shar: Extracting \"'xview.demos/seln_svc/Makefile'\" \(162 characters\)
  408. sed "s/^X//" >'xview.demos/seln_svc/Makefile' <<'END_OF_FILE'
  409. XLDFLAGS= -lxview -lX11
  410. X
  411. XTARGETS=long_seln seln seln_line simple_seln text_seln
  412. X
  413. Xall: $(TARGETS)
  414. X
  415. X${TARGETS}: $$@.c $$@.o 
  416. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o 
  417. END_OF_FILE
  418. if test 162 -ne `wc -c <'xview.demos/seln_svc/Makefile'`; then
  419.     echo shar: \"'xview.demos/seln_svc/Makefile'\" unpacked with wrong size!
  420. fi
  421. # end of 'xview.demos/seln_svc/Makefile'
  422. fi
  423. if test -f 'xview.demos/sv_compat/Makefile' -a "${1}" != "-c" ; then 
  424.   echo shar: Will not clobber existing file \"'xview.demos/sv_compat/Makefile'\"
  425. else
  426. echo shar: Extracting \"'xview.demos/sv_compat/Makefile'\" \(124 characters\)
  427. sed "s/^X//" >'xview.demos/sv_compat/Makefile' <<'END_OF_FILE'
  428. XLDFLAGS= -lxview -lX11
  429. X
  430. XTARGETS=pw_draw
  431. X
  432. Xall: $(TARGETS)
  433. X
  434. X${TARGETS}: $$@.c $$@.o 
  435. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o 
  436. X
  437. END_OF_FILE
  438. if test 124 -ne `wc -c <'xview.demos/sv_compat/Makefile'`; then
  439.     echo shar: \"'xview.demos/sv_compat/Makefile'\" unpacked with wrong size!
  440. fi
  441. # end of 'xview.demos/sv_compat/Makefile'
  442. fi
  443. if test -f 'xview.demos/textsw/Imakefile' -a "${1}" != "-c" ; then 
  444.   echo shar: Will not clobber existing file \"'xview.demos/textsw/Imakefile'\"
  445. else
  446. echo shar: Extracting \"'xview.demos/textsw/Imakefile'\" \(671 characters\)
  447. sed "s/^X//" >'xview.demos/textsw/Imakefile' <<'END_OF_FILE'
  448. X#
  449. X# @(#)Imakefile 1.3 89/12/06 SMI
  450. X#
  451. X# Imakefile for textsw
  452. X#
  453. X# LIBRARY_DEST is the location of the XView libraries
  454. X# HEADER_DEST is the location of the XView header files
  455. X# LIBDIR is the directory containing the X11 library (libX11.a)
  456. X#
  457. X
  458. XLIBRARY_DEST=/home/xview/usr/lib
  459. XHEADER_DEST=/home/xview/usr/include
  460. X
  461. XLIBDIR=/home/X11/lib
  462. XLDFLAGS=-L$(LIBRARY_DEST) -L$(LIBDIR) -lxview -lX11
  463. XINCLUDES= -I.. -I$(HEADER_DEST) -I$(TOP) -DSTANDALONE
  464. X
  465. X# Uncomment the following line to use libxvol.a and libxvin.a
  466. X#
  467. X#LDFLAGS=-L$(LIBRARY_DEST) -L$(LIBDIR) -lxvol -lxvin -lX11
  468. X
  469. XTARGETS=textsw textsw.font
  470. X
  471. Xall: $(TARGETS)
  472. X
  473. X${TARGETS}: $$@.c $$@.o 
  474. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o 
  475. END_OF_FILE
  476. if test 671 -ne `wc -c <'xview.demos/textsw/Imakefile'`; then
  477.     echo shar: \"'xview.demos/textsw/Imakefile'\" unpacked with wrong size!
  478. fi
  479. # end of 'xview.demos/textsw/Imakefile'
  480. fi
  481. if test -f 'xview.demos/textsw/Makefile' -a "${1}" != "-c" ; then 
  482.   echo shar: Will not clobber existing file \"'xview.demos/textsw/Makefile'\"
  483. else
  484. echo shar: Extracting \"'xview.demos/textsw/Makefile'\" \(134 characters\)
  485. sed "s/^X//" >'xview.demos/textsw/Makefile' <<'END_OF_FILE'
  486. XLDFLAGS= -lxview -lX11
  487. X
  488. XTARGETS=textsw textsw.font
  489. X
  490. Xall: $(TARGETS)
  491. X
  492. X${TARGETS}: $$@.c $$@.o 
  493. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o 
  494. END_OF_FILE
  495. if test 134 -ne `wc -c <'xview.demos/textsw/Makefile'`; then
  496.     echo shar: \"'xview.demos/textsw/Makefile'\" unpacked with wrong size!
  497. fi
  498. # end of 'xview.demos/textsw/Makefile'
  499. fi
  500. if test -f 'xview.demos/textsw/textsw.c' -a "${1}" != "-c" ; then 
  501.   echo shar: Will not clobber existing file \"'xview.demos/textsw/textsw.c'\"
  502. else
  503. echo shar: Extracting \"'xview.demos/textsw/textsw.c'\" \(565 characters\)
  504. sed "s/^X//" >'xview.demos/textsw/textsw.c' <<'END_OF_FILE'
  505. X#include <xview/xview.h>
  506. X#include <xview/textsw.h>
  507. X#include <xview/panel.h>
  508. X
  509. X#define HEIGHT        500
  510. X#define WIDTH        500
  511. X
  512. XTextsw        textsw;
  513. XPanel           panel;
  514. XIcon        icon;
  515. X
  516. Xmain(argc,argv)
  517. Xint        argc;
  518. Xchar    *argv[];
  519. X{
  520. X    Frame    frame;
  521. X    int        textsw_width;
  522. X
  523. X    xv_init(XV_INIT_ARGS, argc, argv, 0);
  524. X
  525. X    frame = xv_create(XV_NULL, FRAME, FRAME_LABEL, argv[0], NULL);
  526. X
  527. X    /* create textsw and set the colormap segment for it */
  528. X    textsw = xv_create(frame, TEXTSW, 
  529. X       WIN_ROWS,    20,
  530. X       WIN_COLUMNS,    80,
  531. X       NULL); 
  532. X
  533. X    window_fit(frame);
  534. X    xv_main_loop(frame);
  535. X}
  536. END_OF_FILE
  537. if test 565 -ne `wc -c <'xview.demos/textsw/textsw.c'`; then
  538.     echo shar: \"'xview.demos/textsw/textsw.c'\" unpacked with wrong size!
  539. fi
  540. # end of 'xview.demos/textsw/textsw.c'
  541. fi
  542. if test -f 'xview.demos/ttysw/Makefile' -a "${1}" != "-c" ; then 
  543.   echo shar: Will not clobber existing file \"'xview.demos/ttysw/Makefile'\"
  544. else
  545. echo shar: Extracting \"'xview.demos/ttysw/Makefile'\" \(300 characters\)
  546. sed "s/^X//" >'xview.demos/ttysw/Makefile' <<'END_OF_FILE'
  547. XLDFLAGS=-L$(LIBRARY_DEST) -L$(LIBDIR) -lxview -lX11
  548. X
  549. XTARG1=sample_tty textsw_to_ttysw xv_termsw 
  550. XTARG2=ttycurses
  551. XTARGETS=$(TARG1) $(TARG2)
  552. X
  553. Xall: $(TARGETS)
  554. X
  555. X${TARG1}: $$@.c $$@.o 
  556. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o
  557. X
  558. X${TARG2}: $$@.c $$@.o
  559. X    ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.o -lcurses -ltermlib
  560. END_OF_FILE
  561. if test 300 -ne `wc -c <'xview.demos/ttysw/Makefile'`; then
  562.     echo shar: \"'xview.demos/ttysw/Makefile'\" unpacked with wrong size!
  563. fi
  564. # end of 'xview.demos/ttysw/Makefile'
  565. fi
  566. if test -f 'xview.demos/ttysw/sample_tty.c' -a "${1}" != "-c" ; then 
  567.   echo shar: Will not clobber existing file \"'xview.demos/ttysw/sample_tty.c'\"
  568. else
  569. echo shar: Extracting \"'xview.demos/ttysw/sample_tty.c'\" \(601 characters\)
  570. sed "s/^X//" >'xview.demos/ttysw/sample_tty.c' <<'END_OF_FILE'
  571. X/*
  572. X * sample_tty.c -- create a base frame with a tty subwindow.
  573. X * This subwindow runs a UNIX command specified in an argument
  574. X * vector as shown below.  The example does a "man cat".
  575. X */
  576. X#include <xview/xview.h>
  577. X#include <xview/tty.h>
  578. X
  579. Xchar *my_argv[] = { "man", "cat",  NULL };
  580. X
  581. Xmain(argc, argv)
  582. Xchar *argv[];
  583. X{
  584. X    Tty tty;
  585. X    Frame frame;
  586. X
  587. X    xv_init();
  588. X    frame = (Frame)xv_create(NULL, FRAME, NULL);
  589. X    tty = (Tty)xv_create(frame, TTY,
  590. X        WIN_ROWS,       24,
  591. X        WIN_COLUMNS,    80,
  592. X        TTY_ARGV,       my_argv,
  593. X        NULL);
  594. X
  595. X    window_fit(frame);
  596. X    xv_main_loop(frame);
  597. X}
  598. END_OF_FILE
  599. if test 601 -ne `wc -c <'xview.demos/ttysw/sample_tty.c'`; then
  600.     echo shar: \"'xview.demos/ttysw/sample_tty.c'\" unpacked with wrong size!
  601. fi
  602. # end of 'xview.demos/ttysw/sample_tty.c'
  603. fi
  604. echo shar: End of archive 6 \(of 6\).
  605. cp /dev/null ark6isdone
  606. MISSING=""
  607. for I in 1 2 3 4 5 6 ; do
  608.     if test ! -f ark${I}isdone ; then
  609.     MISSING="${MISSING} ${I}"
  610.     fi
  611. done
  612. if test "${MISSING}" = "" ; then
  613.     echo You have unpacked all 6 archives.
  614.     rm -f ark[1-9]isdone
  615. else
  616.     echo You still need to unpack the following archives:
  617.     echo "        " ${MISSING}
  618. fi
  619. ##  End of shell archive.
  620. exit 0
  621.